﻿@model ESupervision.Models.MeetingNote

@{
    ViewBag.Title = "Create Meeting Note";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<style>
    textarea {
        max-width: 80%;
    }
</style>
@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    <div class="row" style="margin-top:50px;">
        <div class="panel panel-primary">
            <div class="panel-heading">
            </div>
            <div class="panel-body">
                <div class="form-horizontal">
                    <div class="well bs-component">
                        <h4>Create Meeting Note</h4>
                        <hr />
                        @Html.ValidationSummary(true)
                        <div class="form-group">
                            @Html.LabelFor(model => model.Note, new { @class = "control-label col-md-2" })
                            <div class="col-md-10">
                                @Html.HiddenFor(model => model.MeetingEventID)
                                @Html.HiddenFor(model => model.UserID)
                                @Html.TextAreaFor(model => model.Note, new { @cols = 200, @rows = 10 })
                                @Html.ValidationMessageFor(model => model.Note)
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-md-offset-2 col-md-10">
                                <button type="submit" class="btn btn-danger btn-sm"><span class="glyphicon glyphicon-plus"> Creat Meeting Note</span></button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
}

<div>
    @Html.ActionLink("Back to List", "Index", new { id = Model.MeetingEventID })
</div>
